package com.kws.tool.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * <b>QueryFileUploadRq</b>
 *
 * @description: QueryFileUploadRq <br>
 * @date: 2024/11/11 09:54 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */
public class QueryFileUploadRq {
    @ApiModelProperty(value = "文件的Content-MD5值。 先获取文件MD5的128位二进制数组，再对此二进制进行Base64编码")
    @NotNull
    private String contentMd5;

    @ApiModelProperty(value = "目标文件的MIME类型,可填写 application/octet-stream 或 application/pdf")
    @NotNull
    private String contentType;

    @ApiModelProperty(value = "文件名称，例如合同名1.pdf")
    @NotNull
    private String fileName;

    @ApiModelProperty(value = "文件大小，单位: byte字节")
    @NotNull
    private Integer fileSize;

    @ApiModelProperty(value = "是否需要转换成PDF文档，默认值 false。")
    private boolean convertToPDF;

    public String getContentMd5() {
        return contentMd5;
    }

    public void setContentMd5(String contentMd5) {
        this.contentMd5 = contentMd5;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getFileSize() {
        return fileSize;
    }

    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    public boolean isConvertToPDF() {
        return convertToPDF;
    }

    public void setConvertToPDF(boolean convertToPDF) {
        this.convertToPDF = convertToPDF;
    }
}
